package com.ppblock.shirox.core.impl;

import com.ppblock.shirox.core.AuthenticationInfo;

import java.io.Serializable;

/**
 * 身份认证信息接口实现
 * @author yangjian
 * @since 2017/12/6
 */
public class SimpleAuthenticationInfo implements AuthenticationInfo, Serializable {

    /**
     * 认证域的名称
     */
    private String realmName;

    /**
     * 用户详细信息
     */
    private Object userInfo;

    public SimpleAuthenticationInfo(String realmName, Object userInfo) {
        this.realmName = realmName;
        this.userInfo = userInfo;
    }

    @Override
    public Object getUserInfo() {
        return this.userInfo;
    }


    public void setUserInfo(Object userInfo) {
        this.userInfo = userInfo;
    }

    @Override
    public String getRealmName() {
        return realmName;
    }

    public void setRealmName(String realmName) {
        this.realmName = realmName;
    }
}
